import { ApiProperty } from "@nestjs/swagger";
import { Category as CategoryType } from "@prisma/client";

export class CategoryEntity implements CategoryType {
    @ApiProperty()
    id: number;

    @ApiProperty()
    code: string;

    @ApiProperty()
    name: string;

    @ApiProperty()
    description: string;

    @ApiProperty()
    sort: number;

    @ApiProperty()
    createdAt: Date;

    @ApiProperty()
    updatedAt: Date;

    @ApiProperty()
    isDeleted: boolean;

    @ApiProperty()
    deletedAt: Date;
}
